package com.example.video.common.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 请求响应封装类
 * <p/>
 *
 * @author : yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ResponseWrap对象", description="请求响应封装")
public class ResponseWrap<T> {

    @ApiModelProperty(value = "响应数据")
    private T data;

    @ApiModelProperty(value = "响应标识")
    private Integer code;

    @ApiModelProperty(value = "响应描述")
    private String msg;
}
